package com.maomao.annotation;

/**
 * Created by admin on 2018/4/17.
 */
@DBTable(name = "USER")
public class User {

    @SQLInteger(name = "ID",constraint = @Constraints(primaryKey = true))
    private Integer id;

    @SQLString(name = "name",value = 30)
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
